package com.itheima.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Category {
    //分类名字
   private String  name;
   //父类Id
   private Integer  parentId;
   //排序
   private Integer sort;
   //父类ID  0表示顶级分类
   private Integer  id;
   //子属性
   private List<Category> children;
}
